//
// Proxy
// Author:qiuchun(362460803@qq.com)
// Time:2023.04.30 17:52:18
// Desc：数据模型类

import Notifier from "./Notifier";
import Facade from "./Facade";
import { warn } from "cc";

export default class Proxy extends Notifier {

    //数据模型可以互相调用
    public getProxy(name: string): Proxy | undefined {
        return Facade.getInstance().retrieveProxy(name);
    }

    public sendNotification(name: string, body?: any, type?: string): void {
        //不提倡,proxy只能与presenter联系
        warn("mvp warn: Proxy don't sendNotification.")
    }
}
